﻿package mortal.component.skin.combobox.comboboxSkin
{
    import com.mui.controls.*;
    import com.mui.display.*;
    import flash.display.*;
    import mortal.common.global.*;
    import mortal.component.gconst.*;
    import mortal.game.resource.*;

    public class ComboboxCellRenderer extends GCellRenderer
    {
        private var _bg:ScaleBitmap;
        private var _across:ScaleBitmap;

        public function ComboboxCellRenderer()
        {
            this.init();
            return;
        }// end function

        public function init() : void
        {
            this._across = ResourceConst.getScaleBitmap(ImagesConst.Menu_overSkin);
            var _loc_1:* = new Bitmap();
            this.setStyle("downSkin", _loc_1);
            this.setStyle("overSkin", this._across);
            this.setStyle("upSkin", _loc_1);
            this.setStyle("selectedDownSkin", _loc_1);
            this.setStyle("selectedOverSkin", this._across);
            this.setStyle("selectedUpSkin", _loc_1);
            this.setStyle("textFormat", GlobalStyle.textFormatPutong.center());
            return;
        }// end function

    }
}
